package com.oilsoft.module.graphics.ui.model
{
	import com.oilsoft.shared.navigation.ContentNavigationEvent;
	
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;
	
	public class GraphicContentModel extends EventDispatcher
	{
		private var _stateIndex:String = ContentNavigationEvent.CONTOUR;
		[Bindable(Event="stateIndexChange")]
		public function get stateIndex():String
		{
			return _stateIndex;
		}
		
		public function set stateIndex(path:String):void
		{
			_stateIndex=path;			
			dispatchEvent( new Event( "stateIndexChange" ) );
		}
		
		public function setStateIndex(path:String):void
		{
			stateIndex = path;
		}
		private var dispatcher:IEventDispatcher;
		public function GraphicContentModel(dispatcher:IEventDispatcher=null)
		{
			this.dispatcher=dispatcher;
		}
	}
}